﻿using Autofac;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.Data;

namespace Wanda.Cms.Data
{
    public class DataModule : Module
    {
        protected override void Load(Autofac.ContainerBuilder builder)
        {
            builder.RegisteDbSession("CMSDb");
            builder.RegisterGeneric(typeof(CmsRepository<>)).As(typeof(ICmsRepository<>)).InstancePerDependency();
        }
    }
}